<?

function _app_iface_navigation_begin ($container) {

	print <<<HTML
	<div class="vmc_iface_navigation">

HTML;
}

function _app_iface_navigation_end ($container) {

	print <<<HTML
	</div>

HTML;
}

function _app_iface_display_begin ($container) {

	print <<<HTML
	<div class="vmc_iface_context">

HTML;
}

function _app_iface_display_end ($container) {

	print <<<HTML
	</div>

HTML;
}

function _app_iface_states () {

	$_APP_MENU = new Container ();
	$_APP_MENU->set_callback_begin ("_app_iface_menu_begin");
	$_APP_MENU->set_callback_end ("_app_iface_menu_end");

	#$_APP_MENU_OPTION->set_callback_begin ("_app_iface_menu_option");
	#$_APP_MENU_OPTION->set_option ("callback_end", false);

	#mysql_query ("SELECT * FROM 

	return $_APP_MENU;
}

function _app_iface_menu_begin ($container) {

	print <<<HTML
<table cellpadding="0" cellspacing="0">

HTML;
}

function _app_iface_menu_end ($container) {

	print <<<HTML
</table>
HTML;
}

function _app_iface_menu_option ($container) {

	print <<<HTML
<tr><td class="vmc_navivation_option"><a class="vmc_navivation_option">{$container->get_variable ("label")}</a></td></tr>
HTML;
}

function _app_iface_categories () {
}

?>
